package com.example.chatroom.controller.result;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class WebSocketMessageResult implements Serializable {
    private String type;
    private Long fromId;
    private String fromName;
    private Long sessionId;
    private String content;
    @JsonFormat(pattern = "MM-dd HH:mm:ss")
    private Date postTime;
}
